
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Printing functions </TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="apptechp219.htm">Previous</A>&nbsp;&nbsp;<A HREF="apptechp221.htm" >Next</A>
<!-- End Header -->
<A NAME="X-REF299755081"></A><h1>Printing functions </h1>
<A NAME="TI6276"></A><p>PowerScript provides predefined functions that you can use
to generate simple and complex lists and reports. Using only three
functions, you can create a tabular report in your printer's
default font. Using additional functions, you can create a report
with multiple text fonts, character sizes, and styles, as well as
lines and pictures.</p>
<A NAME="TI6277"></A><p><A HREF="apptechp220.htm#CIHHHJBE">Table 33-1</A> lists
the functions for printing.</p>
<A NAME="CIHHHJBE"></A><table cellspacing=0 cellpadding=6 border=1 frame="void" rules="all"><caption>Table 33-1: PowerScript printing
functions</caption>
<tr><th  rowspan="1"  ><A NAME="TI6278"></A>Function</th>
<th  rowspan="1"  ><A NAME="TI6279"></A>Description</th>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6280"></A>Print</td>
<td  rowspan="1"  ><A NAME="TI6281"></A>There are five Print function formats.
You can specify a tab in all but two formats, and in one you can
specify two tabs.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6282"></A>PrintBitMap</td>
<td  rowspan="1"  ><A NAME="TI6283"></A>Prints the specified bitmap.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6284"></A>PrintCancel</td>
<td  rowspan="1"  ><A NAME="TI6285"></A>Cancels the specified print job.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6286"></A>PrintClose</td>
<td  rowspan="1"  ><A NAME="TI6287"></A>Sends the current page of a print job
to the printer (or spooler) and closes the print job.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6288"></A>PrintDataWindow</td>
<td  rowspan="1"  ><A NAME="TI6289"></A>Prints the specified DataWindow as a
print job.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6290"></A>PrintDefineFont</td>
<td  rowspan="1"  ><A NAME="TI6291"></A>Defines one of the eight fonts available
for a print job.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6292"></A>PrintGetPrinter</td>
<td  rowspan="1"  ><A NAME="TI6293"></A>Gets the current printer name.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6294"></A>PrintGetPrinters</td>
<td  rowspan="1"  ><A NAME="TI6295"></A>Gets the list of available printers.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6296"></A>PrintLine</td>
<td  rowspan="1"  ><A NAME="TI6297"></A>Prints a line of a specified thickness
at a specified location.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6298"></A>PrintOpen</td>
<td  rowspan="1"  ><A NAME="TI6299"></A>Starts the print job and assigns it a
print job number.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6300"></A>PrintOval</td>
<td  rowspan="1"  ><A NAME="TI6301"></A>Prints an oval (or circle) of a specified
size at a specified location.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6302"></A>PrintPage</td>
<td  rowspan="1"  ><A NAME="TI6303"></A>Causes the current page to print and
sets up a new blank page.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6304"></A>PrintRect</td>
<td  rowspan="1"  ><A NAME="TI6305"></A>Prints a rectangle of a specified size
at a specified location.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6306"></A>PrintRoundRect</td>
<td  rowspan="1"  ><A NAME="TI6307"></A>Prints a round rectangle of a specified
size at a specified location.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6308"></A>PrintScreen</td>
<td  rowspan="1"  ><A NAME="TI6309"></A>Prints the screen image as part of a
print job.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6310"></A>PrintSend</td>
<td  rowspan="1"  ><A NAME="TI6311"></A>Sends a specified string directly to
the printer.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6312"></A>PrintSetFont</td>
<td  rowspan="1"  ><A NAME="TI6313"></A>Sets the current font to one of the defined
fonts for the current job.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6314"></A>PrintSetPrinter</td>
<td  rowspan="1"  ><A NAME="TI6315"></A>Sets the printer to use for the next
print function call. This function does not affect open jobs.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6316"></A>PrintSetSpacing</td>
<td  rowspan="1"  ><A NAME="TI6317"></A>Sets a spacing factor to determine the
space between lines.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6318"></A>PrintSetup</td>
<td  rowspan="1"  ><A NAME="TI6319"></A>Calls the printer Setup dialog box and
stores the user's responses in the print driver.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6320"></A>PrintSetupPrinter</td>
<td  rowspan="1"  ><A NAME="TI6321"></A>Displays the printer setup dialog box.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6322"></A>PrintText</td>
<td  rowspan="1"  ><A NAME="TI6323"></A>Prints the specified text string at a
specified location.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6324"></A>PrintWidth</td>
<td  rowspan="1"  ><A NAME="TI6325"></A>Returns the width (in thousandths of
an inch) of the specified string in the current font of the current
print job.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6326"></A>PrintX</td>
<td  rowspan="1"  ><A NAME="TI6327"></A>Returns the x value of the print cursor.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI6328"></A>PrintY</td>
<td  rowspan="1"  ><A NAME="TI6329"></A>Returns the y value of the print cursor.</td>
</tr>
</table>
<A NAME="TI6330"></A><p>For more information about printing functions,
see the <i>PowerScript Reference</i>
.</p>

